import request from '@/utils/request'

// 查询代办事项列表
export function listTodoList(query) {
  return request({
    url: '/fs/todoList/list',
    method: 'get',
    params: query
  })
}

// 查询代办事项详细
export function getTodoList(id) {
  return request({
    url: '/fs/todoList/' + id,
    method: 'get'
  })
}

// 新增代办事项
export function addTodoList(data) {
  return request({
    url: '/fs/todoList',
    method: 'post',
    data: data
  })
}

// 修改代办事项
export function updateTodoList(data) {
  return request({
    url: '/fs/todoList',
    method: 'put',
    data: data
  })
}

// 删除代办事项
export function delTodoList(id) {
  return request({
    url: '/fs/todoList/' + id,
    method: 'delete'
  })
}
